{{ $dateFormat := (default "January 2, 2006" .Site.Params.BookDateFormat) }}
{{ if or .Date .Params.tags }}
<div>
{{ with .Date}}
  <h5>{{ .Format $dateFormat }}</h5>
{{ end }}

<div>
{{ range $term, $_ := .Site.Taxonomies }}
  {{ with $list := $.Param $term }}
    |
    {{ range $n, $single := $list }}{{ if $n }}, {{ end }}
      <a href="{{ (urls.Parse $.Site.BaseURL).Path }}{{ $term }}/{{ $single | urlize}}">{{ $single }}</a>
      <!-- {/*{- with $.Site.GetPage (printf "/%s/%s" $term $single | urlize) }*/}
        <a href="{/*{ .RelPermalink }*/}">{/*{ .Title }*/}</a>
      {/*{- end }*/} -->
    {{- end }}
    |
  {{ end }}
{{ end }}


{{ if and .File .Site.Params.BookCommentLink .Site.Params.BookCommentPath }}
    <a href="{{ .Site.Params.BookCommentLink }}/{{ .Site.Params.BookCommentPath }}/{{ replace .File.Path "\\" "/" }}#blob-comment" target="_blank" rel="noopener">
      <img src="{{ "svg/edit.svg" | relURL }}" class="book-icon" alt="Comment" />
      评论
    </a>
{{ end }}

</div>


</div>
{{ end }}
